package com.tyk.bookstore.front.order.model.query;


import com.tyk.bookstore.front.order.model.emume.CancelReason;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tyk
 * @description 订单取消参数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderCancelQuery {
    @Schema(description = "订单ID")
    @NotNull
    @Min(1)
    private Long orderId;
    @Schema(description = "取消原因[0其他,1库存不足,2价格有点贵,3商品降价,4规格/款式/数量拍错,5收货地址拍错,6暂时不需要了]")
    @NotNull
    private CancelReason reason;
}
